#! /bin/sh
# Run CWELL with CWP PostScript Graphics

demo=8
psfile1=demo${demo}1.eps
psfile2=demo${demo}2.eps

x1beg=0 x1end=6500 x2beg=-100 x2end=10000

cwell |
cshotplot >demo${demo}plot  outpar=demo${demo}par

psgraph <demo${demo}plot par=demo${demo}par style=seismic \
	title="Direct + Primaries" \
	label1="Depth (ft)"  label2="Range (ft)" \
	wbox=6 hbox=4 \
	x1beg=$x1beg x1end=$x1end x2beg=$x2beg x2end=$x2end >$psfile1

# Put the PostScript on screen or printer according to local lore
#cat $psfile1 | rsh keller -l jkc pwin
#cat $psfile1 | rsh dix -l jkc lpr -P$DixPrinter
xpwin <$psfile1


cshot2

suaddhead <demo${demo}traces ftn=1 ns=501 |
sushw key=dt a=4000 |
sugain gagc=1 wagc=0.5 |
supswigp title="Crosswell Data (agc)" \
	label1="Time in Seconds"  label2="Trace" >$psfile2

# Put the PostScript on screen or printer according to local lore
#cat $psfile2 | rsh dix -l jkc lpr -P$DixPrinter
xpwin <$psfile2


